﻿<?php

require('configs/include.php');

class c_programCreate extends super_controller {
	
	public function display()
	{
              $typeSession = $_SESSION['user']['type'];
            if($typeSession == "lider" || $typeSession == "programador" || $typeSession == "intermediario"){
                $varAux=$this->gvar['n_index']." -> ".$this->gvar['n_program'];
		$this->engine->assign('ubicationPath',$varAux);
		$this->engine->display('header.tpl');
		$this->engine->display('programCreate.tpl');
		$this->engine->display('footer.tpl');
                }else{
                $this->engine->display('header.tpl');
                $this->engine->display('sinPermisos.tpl');
                $this->engine->display('footer.tpl');
            }
	}
	
	public function run()
	{
		$this->display();
	}
}

$call = new c_programCreate();
$call->run();

?>